package com.cskaoyan.javase.oop3._1interface._4example.model;

/**
 * 商品的数据类,用来模拟数据库,使用一个数组来存储数据
 *
 * @since 10:28
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class GoodsData {
    public static final Goods[] GOODS_DATA = new Goods[6];

    static {
        GOODS_DATA[0] = new Goods(1, "iPhone12", 5000, "苹果");
        GOODS_DATA[1] = new Goods(2, "小米13", 3999, "小米");
        GOODS_DATA[2] = new Goods(3, "华为mate50", 6000, "华为");
        GOODS_DATA[3] = new Goods(4, "三星S22", 4000, "三星");
        GOODS_DATA[4] = new Goods(5, "OPPO find n2", 9000, "OPPO");
        GOODS_DATA[5] = new Goods(6, "Vivo X90", 5000, "Vivo");
    }
}
